{include file="public/header" /}
<style>
        body {
      background: #e1e0de;
    }
    * {
      box-sizing: border-box;
    }
h1,
h2,
h3,
h4 {
  font-weight: 700 !important;
}
.layui-card-header {
  width: 100%;
  border-bottom: 1px solid #999 ;
  padding-left: 5px;
  height: auto;
}
.layui-card {
  padding: 10px 20px 50px;
}
p {
  margin: 0 0 10px !important;
}
.layui-container {
  padding: 0 !important;
}
img {
  max-width: 100%;
}
::-moz-selection {
  background: #cccccc;
  color: #ffffff;
}
::selection {
  background: #cccccc;
  color: #ffffff;
}
.layui-breadcrumb {
  padding-left: 5px;
}
.layui-card h1 {
  margin: 10px auto 0;
}
.description {
  font-size: 15px;
  font-weight: bold;
  margin: 20px 0;
}

.layui-textarea {
  resize: none !important;
}

@media screen and (max-width: 800px) {
  .layui-card-header {
    line-height: normal !important;
    font-size: 10px !important;
  }
}

     
    .layui-card-body{
         padding: 10px 5px;
    }
    .layui-card-body .layui-row .layui-col-sm9 {
      margin: revert;
      padding: revert;
      list-style: unset;
    }
   
    .date{
      font-style:italic;color:black;color:#666;
    }
    .but{background-color: #0073b1!important;border: 0!important;
      border-radius: 2px!important;
      box-sizing: border-box!important;
      color: #fff!important;
      cursor: pointer!important;
      display: inline-block!important;
      height: 23px;}
    .but:hover,.but:hover a{
      background-color: #08525f !important;
    }
</style>
<div class="layui-container" style='font: 12px/14px arial,helvetica,sans-serif;'>
  <div class="layui-card">
    <span class="layui-breadcrumb" lay-separator="/">
      <a href="/" style='font: 12px/14px arial,helvetica,sans-serif;'>{:lang('Home')}</a>
      {foreach $crumbs as $k=>$v }
      <a href="/{$v['crumbs_url']}" style="font: 12px/14px arial,helvetica,sans-serif;color:#36648A">{$v['alias_name']}</a>
      {/foreach}
      <a style='font: 12px/14px arial,helvetica,sans-serif;color:#333'><cite>{$title}</cite></a>
    </span>

    <div class="layui-card-header">
      <h1>{$title}</h1>
    </div>
        
    
     
    <div class="layui-card-body" style='color: #333;line-height: 24px;'>
      <div class='date'>{:lang('Release time')} : {$create_time} &nbsp;&nbsp;&nbsp;&nbsp;<?php if(config('app.default_lang')=='en-us'){?><a href="https://www.linkedin.com/shareArticle?mini=true&url={:urlencode($url)}&title={:urlencode($title)}"><button class="but" type="button" style=""><xdoor-icon aria-hidden="true"><svg viewBox="0 0 24 24" width="24px" height="24px" x="0" y="0" preserveAspectRatio="xMinYMin meet">
        <g style="fill: currentColor">
          <rect x="-0.003" style="fill:none;" width="24" height="24"></rect>
          <path style="" d="M20,2h-16c-1.1,0-2,0.9-2,2v16c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V4C22,2.9,21.1,2,20,2zM8,19h-3v-9h3V19zM6.5,8.8C5.5,8.8,4.7,8,4.7,7s0.8-1.8,1.8-1.8S8.3,6,8.3,7S7.5,8.8,6.5,8.8zM19,19h-3v-4c0-1.4-0.6-2-1.5-2c-1.1,0-1.5,0.8-1.5,2.2V19h-3v-9h2.9v1.1c0.5-0.7,1.4-1.3,2.6-1.3c2.3,0,3.5,1.1,3.5,3.7V19z"></path>
        </g>
      </svg></xdoor-icon><b style="float:right;padding-top:6px;padding-right:5px">Share</b></button></a><?php }?></div>

      <div class="layui-row">
        <div class="layui-col-sm2" style="width:25%;padding: 10px 10px;float: right;">
          <div class="archives" style="margin:10px 0px;border: 1px solid #D3D4D8;padding:24px;">
            <h3 style="padding-left: 20px;">{:lang('CATEGORIES')}</h3>
            <ul class="archives-ul">
              {volist name="$eventsc" id="data"}
              <li style="padding:5px 20px;text-align:left">
                <a href="/{:end($crumbs)['crumbs_url']}categories/{:urlencode(str_replace(' ','-',strtolower($data['title_en'])))}/" style="text-decoration: none"><span class="layui-icon " style='color:#36648a;'>
                                </span>{$data['title']}<span>({$data['num']})</span></a>
              </li>
              {/volist}
              <div style="clear: both;"></div>
            </ul>
          </div>
          <div class="archives" style="margin:10px 0px;border: 1px solid #D3D4D8;padding: 24px;">
            <h3 style="padding-left: 20px;">{:lang('LATEST ARTICLES')}</h3>
            <ul class="archives-ul">
              {volist name="$events" id="data"}
              <li style="padding:5px 0px;text-align:left">
                <a href="/{:end($crumbs)['crumbs_url']}{$data['url']}/" style="text-decoration: none">
                  <div class="layui-col-sm3" style="text-align:left;" >
                    <img src="{$data['img']}" />
                  </div>
                  <div class="layui-col-sm9">
                    <?php if(config('app.default_lang')=='zh-cn'){?>
                    {:strip_tags(mb_substr($data['title'],0,200))}
                    <?php }else{?>
                    {:strip_tags(substr($data['title'],0,200))}
                    <?php }?>
                  </div>
                </a>
              </li>
              <div style="clear: both;"></div>
              {/volist}

            </ul>
          </div>
        </div>
        <div class="layui-col-sm9" style="width:75%;padding: 10px 10px;float: left;">
          {:htmlspecialchars_decode($content)}
          <ul style="margin-top:30px;display: flex;flex-wrap: wrap;">
            <li style="width: calc(100% / 2);">
            <?php if($front){?>
            <a href="/{:end($crumbs)['crumbs_url']}{$front['url']}/" class="s_prev">{:lang('Previous')}: {$front['title']}</a>
            <?php }else{?>
            {:lang('Previous')}: {:lang('no more')}
            <?php }?>
            </li>
            <li style="width: calc(100% / 2);">
              <?php if($after){?>
              <a href="/{:end($crumbs)['crumbs_url']}{$after['url']}/" class="x_next" >{:lang('Next')}: {$after['title']}</a>
              <?php }else{?>
              {:lang('Next')}: {:lang('no more')}
              <?php }?>
            </li>
          </ul>
        </div>
      </div>

    </div>
  </div>
</div>
{include file="/public/footer" /} 
